import request from '@/utils/request'

// 查询会议室申请管理列表
export function listApplication(query) {
  return request({
    url: '/day/application/list',
    method: 'get',
    params: query
  })
}

// 查询会议室申请管理详细
export function getApplication(id) {
  return request({
    url: '/day/application/' + id,
    method: 'get'
  })
}

// 新增会议室申请管理
export function addApplication(data) {
  return request({
    url: '/day/application',
    method: 'post',
    data: data
  })
}

// 修改会议室申请管理
export function updateApplication(data) {
  return request({
    url: '/day/application',
    method: 'put',
    data: data
  })
}

// 删除会议室申请管理
export function delApplication(id) {
  return request({
    url: '/day/application/' + id,
    method: 'delete'
  })


}
  //获取会议室姓名
  export function getMeetingRoomList(query = {}) {
    return request({
      url: '/day/application/meetinglist',
      method: 'get',
      params: query
    })
  }
